package io.snow.mybatis.core.exception;

import io.snow.mybatis.core.entity.UserExtraInfo;

public class NoLoginException extends RuntimeException {

    private UserExtraInfo userInfo;

    public NoLoginException(){ super(); }

    public NoLoginException(UserExtraInfo userInfo) {
        super("请先登录", null, false, false);
        this.userInfo = userInfo;
    }

    public UserExtraInfo getUserInfo() { return userInfo; }
}
